package com.maimao.api.mall.goods;

import com.maimao.core.model.resp.PageResult;
import com.maimao.core.model.resp.Result;
import com.maimao.model.goods.Comment;
import com.maimao.model.goods.input.CommentFilter;
import com.maimao.model.goods.input.CommentInput;
import com.maimao.model.goods.vo.CommentSingle;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author MaoLin Wang
 * @date 2021/1/28 10:27 上午
 */
@Api(value = "评论接口")
@RequestMapping("/goods/comment")
public interface CommentApi {

    @ApiOperation("发布评论")
    Result<?> publish(CommentInput comment, BindingResult bindingResult);

    @ApiOperation("商品详情页的评论数据")
    Result<?> goodsDetailCommentData(Integer page, Integer size, Long goodsId, CommentFilter filter);

    @ApiOperation("根据id查单个评论数据")
    public Result<?> queryCommentById(Long id);

    @ApiOperation("店铺评论热词统计")
    public Result<?> shopCommentHotWord(Long goodsId);


}
